<template>
  <div class="category-list">
    <div @click="tips">
      <img src="@/assets/img/category/market.png" />
      <span>新蜂超市</span>
    </div>
    <div @click="tips">
      <img src="@/assets/img/category/costume.png" />
      <span>新蜂服饰</span>
    </div>
    <div @click="tips">
      <img src="@/assets/img/category/global.png" />
      <span>全球购</span>
    </div>
    <div @click="tips">
      <img src="@/assets/img/category/fresh.png" />
      <span>新蜂生鲜</span>
    </div>
    <div @click="tips">
      <img src="@/assets/img/category/tohome.png" />
      <span>新蜂到家</span>
    </div>
    <div @click="tips">
      <img src="@/assets/img/category/recharge.png" />
      <span>充值缴费</span>
    </div>
    <div @click="tips">
      <img src="@/assets/img/category/9.9.png" />
      <span>9.9元拼</span>
    </div>
    <div @click="tips">
      <img src="@/assets/img/category/discount.png" />
      <span>领劵</span>
    </div>
    <div @click="tips">
      <img src="@/assets/img/category/save.png" />
      <span>省钱</span>
    </div>
    <div @click="tips">
      <img src="@/assets/img/category/all.png" />
      <span>全部</span>
    </div>
  </div>
</template>

<script>
import { Toast } from "vant";

export default {
  name: "CategoryList",

  methods: {
    tips() {
      Toast("敬请期待");
    },
  },
};
</script>

<style scoped>
.category-list {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  width: 100%;
  padding-bottom: 13px;
  font-size: 12px;
}
.category-list div {
  display: flex;
  flex-direction: column;
  width: 20%;
  text-align: center;
}
.category-list div img {
  width: 25px;
  margin: 13px auto 8px auto;
}
</style>
